package com.treasure.mall.biz.service.core.user;

import com.treasure.mall.biz.base.CrudService;
import com.treasure.mall.biz.entity.user.UserAddressPO;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/7/6
 */
public interface UserAddressService extends CrudService<UserAddressPO, Long> {
    UserAddressPO findDefault(Long userId);

    List<UserAddressPO> findByUser(Long userId);

    void setDefault(Long id, Long userId);
}
